home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Clinical Endocrinology
/
Clinical Endocrinology.iso
/
mac
/
Endocrinology Folder
/
Data
/
Init.dir
/
00003_Script_3
< prev
next >
Wrap
Text File
|
1995-11-09
|
3KB
|
121 lines
-- Handler to start off. "WhereAmI" is called to detect
-- which platform the movies are on. Then the movie jumps to
-- the top level movie.
on startItRolling
global gSep, CDDrive, installedFolderPath, pirateWindow
whereAmI
checkMonitor
determineCDDrive
canISave
set the exitLock to TRUE
put the pathName into installedFolderPath
put the pathName & "Pirate.dir" into pirateWindow
go movie CDDrive & "00000000" & gSep & "Intro.dir"
end startItRolling
------------------------------------------
on determineCDDrive
global CDDrive
if the machineType <> 256 then
set CDDrive = "Endocrinology:"
else
-- put routine for scanning/selecting PC CD Drive here
Checkpaths -- see handler below
end if
end determineCDDrive
------------------------------------------
on checkMonitor
global oldMonitorSetting
if the machineType <> 256 then
put the colorDepth into oldMonitorSetting
set the colorDepth to 8
if the colorDepth <> 8 then
alert "Unable to set your monitor to 256 colours. ¼
Please set your monitor to 256 colours¼
in the monitors control panel and relaunch. ¼
You may continue but things will look strange."
end if
else
if the colorDepth <> 8 then
alert "Please set your monitor to 256 colours.¼
You may continue but things will look strange."
end if
end if
end checkMonitor
------------------------------------------
on Checkpaths
global CDDrive
--This handler searches through all the possible drive letters on a user's
--PC to find the CD-ROM drive letter (which isn't always "D").
--This handler assumes that:
---->Your CD-ROM disc is already in the CD drive.
-- (if not it prompts the user to insert the disc)
---->your CD-ROM disc contains a file called "dummy.txt" in the root
-- directory of your disc
-- (If you use a different dummy file name and directory path, make sure
-- to update the var thisPath below).
---->You use your own filename and path in the "go to frame" line below.
---->You have the fileIO.DLL file in the same folder as your DFW file or
--- projector.
--openXlib "Fileio.dll"
--set the itemdelimiter to "\"
repeat with i = 67 to 90
set drive = numToChar(i)
set thisPath = drive & ":\PLUMINI.TXT"
set myFile = fileIO(mNew,"read",thisPath)
if objectP(myFile) then
set userCDDrive = drive
set the SearchPath = [userCDDrive & ":\"]
set CDDrive = userCDDrive & ":\"
exit
--closeXlib "Fileio.dll"
end if
end repeat
--closeXlib "Fileio.dll"
alert "Please check that the disc is in your CD drive."
updatestage
end Checkpaths
--------------------------------------------------------------------
-- Check to see if Roddy is running this from the CD or the HD
-- like he's supposed to!
on canISave
put fileIO(mNew, "write", the pathName & "Wibble.TXT") into testObj
if objectP(testObj) then
-- I'm on a HD
testObj(mDelete)
return TRUE
else
-- I'm on a CD
alert "Could not create a temporary file on your Hard Disk. ¼
If you are running Endocrinology directly from the CD you will not ¼
be able to save slideboxes and bookmarks. Please install Endocrinology¼
if you wish to use those features."
return FALSE
end if
end canISave